package com.cloud.message.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.cloud.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * IM消息群组
 *
 * @author yzj
 * @since 2024-01-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(name = "SysImGroup对象", description = "IM消息群组")
@TableName("sys_im_group")
public class SysImGroup extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "群名称")
    private String groupName;

    @Schema(description = "群头像")
    private String avatar;

    @Schema(description = "群主ID")
    private Long master;

    @Schema(description = "公告")
    private String noticeContent;

    @Schema(description = "允许他人邀请（0允许 1不允许）")
    private String openInvite;

    @Schema(description = "删除标志（0代表存在 1代表删除）", hidden = true)
    @TableField(value = "deleted", fill = FieldFill.INSERT)
    private Integer deleted;

    @Schema(description = "备注", hidden = true)
    private String remark;

    @Schema(description = "群用户ID", hidden = true)
    @TableField(exist = false)
    private Long userId;

}
